package cn.ocean.basic.utils;

/**
* @Description: 异步操作工具类
* @Author: Fill
* @Version: 1.0
* @Date:  23:12 23:12
*/

public class AjaxResult {
    public Boolean success = true;

    public String message = "操作成功";
    /**
    * @Title: 提供一个静态方法，返回AjaxResult实例
    * @Description: TODO
    * @Author: Fill
    * @Version: 1.0
    * @Date:  23:15 23:15
    * @Parameters: []
    * @Return cn.ocean.basic.utils.AjaxResult
    */
    public  static AjaxResult getAjaxResult(){

        return new AjaxResult();
    }
    /**
    * @Title: setSuccess
    * @Description: 提供两个set方法，这样就可以链式编程
    * @Author: Fill
    * @Version: 1.0
    * @Date:  23:17 23:17
    * @Parameters: [success]
    * @Return cn.ocean.basic.utils.AjaxResult
    */
    public AjaxResult setSuccess(Boolean success){
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message){
        this.message = message;
        return this;
    }

}
